package com.cnswhy.cloud.server.system.service.impl;

import com.cnswhy.cloud.common.datasource.service.UidGenerator;
import com.cnswhy.cloud.common.redis.service.IdGeneratorService;
import org.springframework.beans.factory.annotation.Autowired;

public class RedisUidGenerator implements UidGenerator {
    @Autowired
    IdGeneratorService idGeneratorService;

    @Override
    public long getUID() {
        return idGeneratorService.genCommonId();
    }
}
